package com.cxx.home.dto.asset;

import com.cxx.common.PlainView;
import com.cxx.common.ReadView;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonView(PlainView.class)
public class AssetDto {
    @Schema(description = "id")
    @JsonView(ReadView.class)
    private Long id;

    @Schema(description = "类别")
    private String category;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "金额")
    private Double amount;

    @Schema(description = "所属人")
    private String owner;

    @Schema(description = "备注")
    private String remark;
}
